package com.px.baolaiapi.controller;


import com.px.common.api.CommonResult;
import com.px.baolaiapi.page.BuyingRequisitionPage;
import com.px.baolaiapi.service.IBuyingRequisitionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 请购单记录表 前端控制器
 * </p>
 *
 * @author 品讯科技
 * @since 2022-08-09
 */
@Api(tags = "请购单||委外请购单记录")
@RestController
@RequestMapping("/buying-requisition")
public class BuyingRequisitionController {

    @Autowired
    IBuyingRequisitionService buyingRequisitionService;



    @ApiOperation("分页查询请购单||委外请购单记录")
    @PostMapping("/queryBuyingRequisitionPage")
    public CommonResult queryBuyingRequisitionPage(@RequestBody BuyingRequisitionPage buyingRequisitionPage) {
        return CommonResult.success(buyingRequisitionService.queryBuyingRequisitionPage(buyingRequisitionPage));
    }


}
